﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Task;

namespace WebApp.Settings
{
    public partial class AddTask : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void AddNewTask(object sender, EventArgs e)
        {
            BuildITasks.Build().AddTask(TBName.Text, TBDescription.Text, Convert.ToInt32(TBProject.Text), Convert.ToInt32(TBStatus.Text), TBStartDate.Text, TBEndDate.Text);
            Response.Redirect("~/Settings/Tasks.aspx");
        }
    }
}